# Copyright (c) 2022-2023, Arm Limited and Contributors. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

if(BUILD_TESTING AND NOT CMAKE_CROSSCOMPILING)
    add_subdirectory(mocks)
else()
    include(FetchContent)

    # Disable file servers in NetX Duo because FileX is not supported by the Open IoT SDK
    set(NXD_ENABLE_FILE_SERVERS OFF CACHE BOOL "")

    if("netxduo" IN_LIST IOTSDK_FETCH_LIST)
        FetchContent_MakeAvailable(netxduo)
    endif()
endif()

add_subdirectory(nx-ip-link-cmsis-eth)
